package cn.wd.service;

import cn.wd.domain.User;
import cn.wd.qo.PageResult;
import cn.wd.qo.QueryObject;

import java.util.List;

public interface IUserService {

    void delete(Long id);

    void save(User user);

    User getById(Long id);

    List<User> selectAll();

    void update(User user);

    PageResult<User> query(QueryObject qo);

    User login(User user) throws Exception;

    void register(User user) throws Exception;
}
